import Vue from 'vue';
import Antd from 'ant-design-vue';
import VueRouter from 'vue-router';
import App from './App.vue';
import router from "@/router/router";
import 'ant-design-vue/dist/antd.css';
import CKEditor from '@ckeditor/ckeditor5-vue';

Vue.config.productionTip = false;
Vue.use(Antd);
Vue.use(VueRouter);
Vue.use(CKEditor);

router.afterEach(to => {
  App.methods.handleRouteChanged(to.path);
});

new Vue({
  render: h => h(App),
  router,
}).$mount('#app')
